import Vue from 'vue'
import Router from 'vue-router'

// const Home = () => ('../views/home/Home.vue')
const A = () => ('../views/home/01.vue')
const B = () => ('../views/home/02.vue')
const C = () => ('../views/home/03.vue')
const D = () => ('../views/home/04.vue')
const E = () => ('../views/home/05.vue')
const F = () => ('../views/home/06.vue')
const G = () => ('../views/home/07.vue')
const H = () => ('../views/home/08.vue')
const I = () => ('../views/home/09.vue')
const J = () => ('../views/home/10.vue')
const K = () => ('../views/home/11.vue')


import Home from '../views/home/Home'
import AA from '../views/home/01'
import BB from '../views/home/02'
import CC from '../views/home/03'
import DD from '../views/home/04'
import EE from '../views/home/05'
import FF from '../views/home/06'
import GG from '../views/home/07'
// import HH from '../views/home/08'
// import II from '../views/home/09'
// import JJ from '../views/home/10'
// import KK from '../views/home/11'


//安装插件
Vue.use(Router)

//创建路由对象
const routes = [
	{
		path:'',
		redirect:'/home'
	},
	{
		path:'/home',
		component: Home
	},
	{
		path:'/01',
		component: AA
	},
	{
		path:'/02',
		component: BB
	},
	{
		path:'/03',
		component:CC
	},
	{
		path:'/04',
		component:DD
	},
	{
		path:'/05',
		component:EE
	},
	{
		path:'/06',
		component:FF
	},
	{
		path:'/07',
		component:GG
	},
	// {
	// 	path:'/08',
	// 	component:HH
	// },
	// {
	// 	path:'/09',
	// 	component:II
	// },
	// {
	// 	path:'/10',
	// 	component:JJ
	// },
	// {
	// 	path:'/11',
	// 	component:KK
	// },
]

const router = new Router({
	routes,
	mode: 'history'
})

//导出router
export default router